/*
 * @Author: your name
 * @Date: 2021-11-13 15:51:04
 * @LastEditTime: 2021-11-16 08:31:28
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\admin\src\classify\index.js
 */
import request from "../../utils/request";
//获取分类数据
function getClassifyList() {
    return request({
        url: "/classify",
        method: "get",
    });
}
//获取分类数据个数
function getClassifyTotal() {
    return request({
        url: "/classify/num",
        method: "get",
    });
}
//添加分类
function addClassifyList(data) {
    return request({
        url: "/classify",
        method: "post",
        data,
    });
}
//删除分类
function delClassifyList(data) {
    return request({
        url: "/classify",
        method: "delete",
        data,
    });
}
//编辑分类
function editClassifyList(data) {
    return request({
        url: "/classify",
        method: "put",
        data,
    });
}
export default {
    getClassifyList,
    getClassifyTotal,
    addClassifyList,
    delClassifyList,
    editClassifyList,
};